package com.ruicar.afs.cloud.softphone.softphoneport;


import com.alibaba.fastjson.JSONObject;
import com.ruicar.afs.cloud.common.core.feign.AfsFeignFormSupport;
import com.ruicar.afs.cloud.common.core.feign.annotations.AfsFeignClear;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.softphone.dto.ApproveTeleRecordDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jiaqi.guo
 * @version 1.0
 * @description: 对接软电话接口
 * @created 2020/7/15 16:07
 */
@FeignClient(name = "softphone", url = "${com.greatwall.systems.softphone-system.url}", configuration = AfsFeignFormSupport.class)
public interface SoftPhoneApiFeign {
    /**
     *软电话参数查询
     * @param staffid
     * @return
     */
    @PostMapping(value = "/queryUserInfo.do")
    @AfsFeignClear(true)
    JSONObject getSoftPhoneData(@RequestParam("staffid") String staffid);
    /**
     * 保存业务数据
     * @param
     * @return
     */
    @PostMapping(value = "/voiceHandler.do")
    @AfsFeignClear(true)
    String saveVoiceHandlerData(@RequestParam("code") String code,
                                   @RequestParam("direct") String direct,
                                   @RequestParam("caller") String caller,
                                   @RequestParam("callee") String callee,
                                   @RequestParam("staffId") String staffId,
                                   @RequestParam("uintId") String uintId,
                                   @RequestParam("agentName") String agentName,
                                   @RequestParam("callId") String callId,
                                   @RequestParam("app_no") String app_no,
                                   @RequestParam("cusName") String cusName,
                                   @RequestParam("voiceId") String voiceId);
}
